using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class TriggerAreaX : MonoBehaviour
{
    public PlayerFocus pF;
    public bool isLeft = false;


    private void OnTriggerEnter2D( Collider2D other )
    {
        if ( other.CompareTag( "Player" ) )
        {
            pF.flag = isLeft ? CameraDir.Left : CameraDir.Right;
            pF.Switch();
            // pF.tarGO = other.gameObject;
        }
    }
}

